// <copyright file="LoadingDialog.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;

namespace YUIAspNetDemo.SimpleDialog
{
    public partial class LoadingPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.btnPost.Click += new EventHandler<YUIAspNet.ButtonEventArgs>(btnPost_Click);
        }

        void btnPost_Click(object sender, YUIAspNet.ButtonEventArgs e)
        {
            System.Threading.Thread.Sleep(2000);
            this.lbl.Text = DateTime.Now.ToLongTimeString();
        }
    }
}
